//package com.asset.crm.dao;
//
//import java.util.List;
//
//import org.hibernate.Query;
//import org.hibernate.Session;
//import org.springframework.stereotype.Repository;
//
//import com.asset.crm.domain.Post;
//import com.asset.crm.domain.UpdateChatter;
//
//@Repository
//public class UpdateChatterDaoImpl extends BasicDaoImpl<UpdateChatter> {
//
//	@SuppressWarnings("unchecked")
//	public List<UpdateChatter> updateChatterWithFollow(Integer empId) {
//		 Session session = sessionFactory.getCurrentSession();
//		 Query query = session.createQuery("select uc  from FollowCenter fc ,UpdateChatter uc where " +
//		 		"fc.followedType.id=uc.followType.id and  fc.followedId = uc.followedId and fc.follower.id = :empId");
//		 query.setParameter("empId", empId);
//		 List<UpdateChatter> updateChatters = query.list();
//		 return updateChatters;	
//	}
//}
